package cls.generictype.kmvp

import cls.generictype.mvp.Model


class LogPresenter(view: LogActivity) : BasePresenter<LogActivity, Model>(view) {

    fun init() {
        var startTime = System.currentTimeMillis()
        println("开始执行时间：" + startTime)
        println("LogPresenter 初始化")
        println("结束Print执行时间：" + (System.currentTimeMillis() - startTime))
        view.showToast("LogPresenter 初始化")
        println("结束showToast执行时间：" + (System.currentTimeMillis() - startTime))
        model.request()
        println("request：" + (System.currentTimeMillis() - startTime))

        startTime = System.currentTimeMillis()
        println("重复执行时间：" + startTime)
        view.showToast("LogPresenter 初始化")
        println("结束showToast执行时间：" + (System.currentTimeMillis() - startTime))
        model.request()
        println("request：" + (System.currentTimeMillis() - startTime))

    }
}